package com.liyongjian.xhban.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.liyongjian.xhban.model.emumm.BlogType;
import com.liyongjian.xhban.model.emumm.LiveDieState;
import com.liyongjian.xhban.model.emumm.YesNoState;


@Entity
@Table(name = "tb_group")
public class Group extends AbstractEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    public String name;
    public Long userId;
    public Long updUserId;
    @Column(columnDefinition = "tinyint", name = "typee")
    public BlogType type = BlogType.HH;
    @Column(columnDefinition = "tinyint")
    public YesNoState isSealed = YesNoState.NO;
    @Column(columnDefinition = "tinyint")
    public LiveDieState state = LiveDieState.LIVE;

    public Group(Long id) {
        this.id = id;
    }

    public Group() {}

}
